package com.ssuu.ssuusnow.model.result;



public enum ResultCode implements StatusCode{
    SUCCESS(1000, "请求成功"),
    FAILED(1001, "请求失败"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    FAILEDNOT(1004, "接口不存在"),
    FAILEDPERSS(1005, "访问接口没有权限"),
    FAILEDTOKEN(1006, "未登录或token失效"),
    ERROR(9999, "未知错误,请联系管理员");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
